﻿@model VideoCache.Server.MVCWeb.Areas.Netbar.Models.ChangePasswordModel

@{
    ViewBag.Title = "修改密码";
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";
}
@section script
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<h2>@ViewBag.Title</h2>
<div class="formContent">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div class="unit">
        @Html.LabelFor(model => model.OldPassword)
        @Html.EditorFor(model => model.OldPassword)
        @Html.ValidationMessageFor(model => model.OldPassword)
    </div>
    <div class="unit">
        @Html.LabelFor(model => model.NewPassword)
        @Html.EditorFor(model => model.NewPassword)
        @Html.ValidationMessageFor(model => model.NewPassword)
    </div>
    <div class="unit">
        @Html.LabelFor(model => model.ConfirmPassword)
        @Html.EditorFor(model => model.ConfirmPassword)
        @Html.ValidationMessageFor(model => model.ConfirmPassword)
    </div>
    <div class="unit">
        @Html.LabelFor(model => model.VerifyCode)
        @Html.EditorFor(model => model.VerifyCode)
        @Html.ValidationMessageFor(model => model.VerifyCode)
    </div>
    <div class="unit">
        <label></label>
        @Html.VerifyCode()
    </div>
    <div class="unit">
        <label></label>
        @Html.ValidationMessage("Error")
    </div>
    <div class="unit">
        <label></label>
        <input type="submit" value="修改" />
    </div>
}
</div>